package com.itheima.work1120s;

public class Test {
    public static void main(String[] args) {
        // 创建年级
        Grade grade = new Grade();

        // 创建班级并添加学生
        Classroom class1 = new Classroom();
        class1.addStudent(new Student(1, "袁华", 85.5));
        class1.addStudent(new Student(2, "安心", 90.0));

        Classroom class2 = new Classroom();
        class2.addStudent(new Student(3, "高启强", 78.0));
        class2.addStudent(new Student(4, "祁同伟", 88.5));

        // 将班级添加到年级
        grade.addClassroom(class1);
        grade.addClassroom(class2);

        // 输出所有学生信息
        grade.printAllStudents();
    }
}
